(define-module (emacs bison-mode)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix build-system emacs)
  #:use-module (guix packages)
  #:use-module (gnu packages emacs)
  #:use-module (gnu packages emacs-xyz)
  #:use-module (guix download))

(define-public emacs-bison-mode
  (package
   (name "emacs-bison-mode")
   (version "20160617.552")
   (source
    (origin
     (method url-fetch)
     (uri (string-append
           "https://melpa.org/packages/bison-mode-"
           version
           ".el"))
     (sha256
      (base32
       "0a9llfw1lfphs6wcw0hhiz268msm07mdwa0njibc1jwj53sxsd3f"))))
   (build-system emacs-build-system)
   (home-page "unspecified")
   (synopsis
    "Major mode for editing bison, yacc and lex files.")
   (description
    "I wrote this since I saw one mode for yacc files out there roaming the
world.     I was daunted by the fact the it was written in 1990, and Emacs
has evolved so much since then (this I assume based on its evolution since
i started using it).     So I figured if i wanted one, I should make it
myself.     Please excuse idiosyncrasies, as this was my first major mode
of this kind.     The indentation code may be a bit weird, I am not sure,
it was my first go at doing Emacs indentation, so I look at how other
modes did it, but then basically did what I thought was right") 
   (license #f)))
